package com.example.test_demo.config;

import com.example.test_demo.entity.Stu;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

public class JavaConfig {
    @Bean
    public Stu stu(){
        Stu stu=new Stu();
        stu.setUsername("jee2021");
        stu.setJava(100);
        return stu;
    }

}
